package com.prs.crm.domain.purchase;

import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.sale.InvoiceType;

/**
 * @author 兰小刚
 * @version 创建时间：2010-7-19 上午10:21:28 类说明
 */
@Entity
@Table(name = "purchase_votecounting")
public class Votecounting extends BaseEntity {
	private static final long serialVersionUID = -4867503240956693033L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	@OneToOne
	@JoinColumn(name = "paymentDetail_id")
	private PaymentDetails paymentDetail;

	/**
	 * 开票日期
	 */
	private Date votecountDate;

	/**
	 * 票据类型
	 */
	@ManyToOne
	private InvoiceType invoiceType;

	/**
	 * 票据单号
	 */
	private String billCode;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public PaymentDetails getPaymentDetail() {
		return paymentDetail;
	}

	public void setPaymentDetail(PaymentDetails paymentDetail) {
		this.paymentDetail = paymentDetail;
	}

	public Date getVotecountDate() {
		return votecountDate;
	}

	public void setVotecountDate(Date votecountDate) {
		this.votecountDate = votecountDate;
	}

	public InvoiceType getInvoiceType() {
		return invoiceType;
	}

	public void setInvoiceType(InvoiceType invoiceType) {
		this.invoiceType = invoiceType;
	}

	public String getBillCode() {
		return billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

}
